<template>
  <div class="header">
    <div>
      <slot name="left"></slot>
    </div>
    <div>{{title}}</div>
    <div>
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props:['title']
}
</script>

<style lang="less" scoped>
.header{
  height: 50px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  div:nth-child(2){
    font-weight: 700;
  }
  .van-icon{
    font-size: 18px;
  }
  div:last-child{
    .van-icon{
      font-size: 30px;
      color: red;
    }
  }
}
</style>